import React, {Component} from 'react';
import {View, StyleSheet, Text, ViewPropTypes} from 'react-native';
import PropTypes from 'prop-types';

export default class ItemWarnView extends Component {
    constructor(props) {
        super(props)
    }

    render() {
        return (
            <View style={styles.container}>
                <Text
                    style={styles.message}>{this.props.message}</Text>
            </View>
        );
    }

}

ItemWarnView.propTypes = {
    /**
     * 消息
     */
    message: PropTypes.string,
}

const styles = StyleSheet.create({
    container: {
        minHeight: 35,
        backgroundColor: '#FEFAEE',
        justifyContent: 'center',
        paddingLeft: 15,
        paddingRight:15,
        paddingTop:10,
        paddingBottom:10
    },
    message: {
        fontSize: 13,
        color: '#D86F24'
    }
});
